package org.hzero.order.app.service.impl;

import java.util.List;

import org.hzero.order.app.service.CompanyService;
import org.hzero.order.domain.entity.Company;
import org.hzero.order.domain.repository.CompanyRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author xiuiqng.Yang-Estelle-양수청
 * @date 2019/8/7 8:51
 */
@Service
public class CompanyServiceImpl implements CompanyService {

    @Autowired
    private CompanyRepository companyRepository;

    @Override
    public List<Company> select(String companyNumber, String companyName) {
        Company company = new Company();
        company.setCompanyNumber(companyNumber);
        company.setCompanyName(companyName);
        return companyRepository.select(company);
    }
}
